import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/yxSystemPrize',
    method: 'post',
    data
  })
}
export function edit(data) {
  return request({
    url: 'api/yxSystemPrize',
    method: 'put',
    data
  })
}
export function del(data) {
  return request({
    url: 'api/yxSystemPrize',
    method: 'DELETE',
    data
  })
}
export function Coupon(data) {
  return request({
    url: 'api/yxStoreCoupon',
    method: 'get',
    data
  })
}

export function init(data) {
  return request({
    url: 'api/yxSystemPrize',
    method: 'get',
    data
  })
}
export function details(id) {
  return request({
    url: 'api/yxSystemWinningRecord/view/details/' + id,
    method: 'get'
  })
}
export function goods(data) {
  return request({
    url: 'api/yxSystemWinningRecord/deliver/goods',
    method: 'PUT',
    data
  })
}

